package com.pine.dbant.common.plugin.meta.function.jdbc;

import com.pine.dbant.common.model.JdbcMetadataTreeView;
import com.pine.dbant.common.model.Table;
import com.pine.dbant.common.plugin.meta.JdbcMetadataAnalysisConfig;
import com.pine.dbant.common.plugin.meta.QueryMetadataFunction;
import com.pine.dbant.common.plugin.meta.QueryMetadataParam;

/**
 * @author xiaoyuan
 * @create 2023/1/3 11:01
 **/
public class JdbcQueryTableChangeSqlFunction implements QueryMetadataFunction<JdbcMetadataAnalysisConfig, String> {


    @Override
    public String query(JdbcMetadataAnalysisConfig metadataAnalysisConfig, QueryMetadataParam queryMetadataParam) {
        metadataAnalysisConfig.getFunction(JdbcMetadataTreeView.TABLE_DETAIL.getType()).query(metadataAnalysisConfig,
                queryMetadataParam);
        Table newTable = queryMetadataParam.getConfiguration().get("", Table.class);
        return null;
    }

    @Override
    public String getType() {
        return "TABLE_CHANGE_SQL";
    }
}
